package com.vm.runtimedata.heap;

public class StackAllocationTest {
    public static void main(String[] args) {
        long start  = System.currentTimeMillis();
        for (int i = 0; i < 1000000000; i++) {
            alloc();
        }
        long end  = System.currentTimeMillis();
        System.out.println("花费了"+(end - start) + " ms");
    }

    private static void alloc() {
        User user = new User();
    }

    public static class User{

    }
}
